package com.aurora.blog.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.aurora.blog.mapper.BlogNavigationMapper;
import com.aurora.blog.domain.BlogNavigation;
import com.aurora.blog.service.IBlogNavigationService;

/**
 * 导航管理Service业务层处理
 * 
 * @author aurora
 * @date 2024-06-18
 */
@Service
public class BlogNavigationServiceImpl implements IBlogNavigationService 
{
    @Autowired
    private BlogNavigationMapper blogNavigationMapper;

    /**
     * 查询导航管理
     * 
     * @param navigationId 导航管理主键
     * @return 导航管理
     */
    @Override
    public BlogNavigation selectBlogNavigationByNavigationId(Long navigationId)
    {
        return blogNavigationMapper.selectBlogNavigationByNavigationId(navigationId);
    }

    /**
     * 查询导航管理列表
     * 
     * @param blogNavigation 导航管理
     * @return 导航管理
     */
    @Override
    public List<BlogNavigation> selectBlogNavigationList(BlogNavigation blogNavigation)
    {
        return blogNavigationMapper.selectBlogNavigationList(blogNavigation);
    }

    /**
     * 新增导航管理
     * 
     * @param blogNavigation 导航管理
     * @return 结果
     */
    @Override
    public int insertBlogNavigation(BlogNavigation blogNavigation)
    {
        return blogNavigationMapper.insertBlogNavigation(blogNavigation);
    }

    /**
     * 修改导航管理
     * 
     * @param blogNavigation 导航管理
     * @return 结果
     */
    @Override
    public int updateBlogNavigation(BlogNavigation blogNavigation)
    {
        return blogNavigationMapper.updateBlogNavigation(blogNavigation);
    }

    /**
     * 批量删除导航管理
     * 
     * @param navigationIds 需要删除的导航管理主键
     * @return 结果
     */
    @Override
    public int deleteBlogNavigationByNavigationIds(Long[] navigationIds)
    {
        return blogNavigationMapper.deleteBlogNavigationByNavigationIds(navigationIds);
    }

    /**
     * 删除导航管理信息
     * 
     * @param navigationId 导航管理主键
     * @return 结果
     */
    @Override
    public int deleteBlogNavigationByNavigationId(Long navigationId)
    {
        return blogNavigationMapper.deleteBlogNavigationByNavigationId(navigationId);
    }
}
